package com.mmall.order.convert;

import com.mmall.order.api.bo.OrderBO;
import com.mmall.order.api.dto.OrderCreateDTO;
import com.mmall.order.model.OrderDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author hejianglong
 * @date 2019/10/25
 */
@Mapper
public interface OrderConvert {

    OrderConvert INSTANCE = Mappers.getMapper(OrderConvert.class);

    @Mappings({})
    OrderDO convert(OrderCreateDTO orderCreateDTO);

    @Mappings({})
    OrderBO convert(OrderDO orderDO);
}
